package edu.chl.jadetalk.business.upload;

import javax.ejb.Local;

/**
 *
 * @author Daniel
 */
@Local
public interface ImageCacheLocal {

    /**
     * Finds the given image in the cache if it exists.
     * @param filename the filename of the image.
     * @return a Byte array containing the image data.
     */
    public Byte[] getImage(String filename);

    /**
     * Stores the given image data with the given name in the cache.
     * @param filename the key for the data.
     * @param image the image data to store.
     */
    public void putImage(String filename, byte[] image);
    
}
